package com.cykj.pos.service;

import com.cykj.pos.domain.BizFeesCharged;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 流量费费用收取列Service接口
 *
 * @author xuxiaolong
 * @date 2022-04-29
 */
public interface IBizFeesChargedService extends IService<BizFeesCharged> {

    /**
     * 查询列表
     */
    List<BizFeesCharged> queryList(BizFeesCharged bizFeesCharged);

    /**
     * 查询除了取消和成功的信息
     * @return
     */
    List<BizFeesCharged> selectBizFeeCharged();

    /**
     * 插入流量费用收取列表
     * @param bizFeesCharged
     */
    void insertBizFeesCharged(BizFeesCharged bizFeesCharged);

    void  timerGetChargeList(String posSn)throws Exception;

    void updateStau(String uuid);

    int getFeeChargeServiceByPosCode(String pos_sn, String merchant_no);

    BizFeesCharged getLklLlf(BizFeesCharged bizFeesCharged);
    BizFeesCharged selectNewOrderNo(String newOrderNo);

    int selectIsSecondSimAmt(String merchant_no,String sn);

    /**
     * 查询累计返现
     * @param userId
     * @return
     */
    BizFeesCharged selectCashbackAmountAll(Long merchId,String channel);

    BizFeesCharged selectCashbackAmountAllUp(Long merchId, String channel, String startTime, String endTime);
}
